import { createApp } from "vue";
import { registerMicroApps, start } from "qiankun";
import router from "./router";

import App from "./App.vue";

createApp(App).use(router).mount("#app");

// 注册微应用
registerMicroApps([
  {
    name: "vue2",
    entry: "//localhost:8080",
    container: "#container-vue2",
    activeRule: "/vue2",
  },
  {
    name: "vue3",
    entry: "//localhost:5174",
    container: "#container-vue3",
    activeRule: "/vue3",
  },
  // {
  //   name: "angularApp",
  //   entry: "//localhost:4200",
  //   container: "#container",
  //   activeRule: "/app-angular",
  // },
]);
// 启动 qiankun
start();
